package pa2.node;
import java.io.Serializable;
import java.util.Map;

import pa2.util.EqualityCompare;




public class NodeData<K extends EqualityCompare<K>, V, M extends Map<K,V>> implements Serializable {
	private M values;

	public NodeData(M values) {
		super();
		this.values = values;
	}
	
	public V get(K key) {
		return this.values.get(key);
	}
	
	public V put(K key, V value) {
		return this.values.put(key, value);
	}
	
	public V remove(K key) {
		return this.values.remove(key);
	}	
}
